<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<c:set var="site" value="info" scope="application"/>
<html>
<c:import url="module/jsp/head.jsp"/>
<body>
<c:import url="module/jsp/header.jsp"/>
<c:import url="module/jsp/aside.jsp"/>
<main>
    <div class="main-content">
        <div class="welcome">您现在的位置是：首页>文章>${chapter.title}</div>
        <div class="blogbox">
            <div class="contentbox">
                <h2 class="contitle">${chapter.title}</h2>
                <p class="bloginfo">
                    <span>shanAdmin</span>
                    <span>
                        <jsp:useBean id="timestamp" class="java.util.Date"/>
                        <jsp:setProperty name="timestamp" property="time" value="${chapter.gmtCreate *1000}"/>
                        <fmt:formatDate value="${timestamp}" pattern="yyyy-MM-dd"/>
                    </span>
                    <span>
                        <c:forEach var="category" items="${chapter.categoryList}">
                            <a href="${category.id}">${category.name}</a>
                        </c:forEach>
                    </span>
                </p>
                <br>
                <p class="bloginfo">
                    <span style="display: none"></span>
                    <span style="display: none"></span>
                    <span>
                        <c:forEach items="${chapter.labelList}" var="label">
                            <a href="list.jsp?label=${label.id}">${label.name}</a>
                        </c:forEach>
                    </span>
                </p>
                <br>
                <br>
                <div class="entry">${chapter.content}</div>
<%--                <div class="nextinfo">--%>
<%--                    <p>上一篇：<a href="#">{{lastChapterName}}</a></p>--%>
<%--                    <p>下一篇：<a href="#">{{nextChapterName}}</a></p>--%>
<%--                </div>--%>
            </div>
<%--            <div class="viewbox">--%>
<%--                <h2 class="newstitle"><b>推荐</b></h2>--%>
<%--                <ul>--%>
<%--                    <li>--%>
<%--                        <a target="_blank" href="../info.html?id={{chapterPV.id}}">--%>
<%--                            <i><img src="{{chapterPV.imgUrl}}" alt="{{chapterPV.title}}"></i>--%>
<%--                            <p>{{chapterPV.title}}</p>--%>
<%--                        </a>--%>
<%--                    </li>--%>
<%--                </ul>--%>
<%--            </div>--%>

            <div class="pinlun">
                <h2 class="newstitle"><b>评论</b></h2>
                <div class="gbok">
                    评论插件
                </div>
            </div>

        </div>
        <div class="rside">
            <div class="news">
                <h2 class="newstitle"><span><a
                        href="../chapter/selectPageByChapter.do?pageSize=20&pageNum=1&category_id={{chapterCategory.id}}">更多</a></span><b>{{chapterCategory.name}}</b>
                </h2>
                <ul>
                    <li>
                        <a target="_blank" href="../info.html#?id={{chapter.id}}">
                            <span>{{formatDate(chapter.gmtCreate)}}</span>{{chapter.title}}
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</main>
<c:import url="module/jsp/footer.jsp"/>
<a href="#" class="cd-top cd-is-visible">Top</a>
</body>
<c:import url="module/jsp/js.jsp"/>
</html>

